<template>
  <div class="container">
    <el-breadcrumb separator-class="el-icon-arrow-right" class="el-b">
      <!-- <el-breadcrumb-item :to="{ path: '/welcome' }"
          >企业管理</el-breadcrumb-item
        > -->
      <el-breadcrumb-item>企业信息</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="frombox">
      <div class="logo-nane">
        <div id="headImg">
          <div id="myPhoto">
            <div class="viewPhoto" @click="monidianji">
              <img :src="imageSave" alt="" id="portrait" style="width: 350px;height: 250px" />
            </div>
            <div class="listBox">
              <input type="file" id="saveImage" name="myphoto" />
            </div>
            <div class="save">
              <div style="margin-bottom:70px;padding-top: 30px">
                <span>{{ uploadDate }}</span>
              </div>
            </div>
          </div>
          <i class="el-icon-t" @click="monidianji">上传logo</i>
        </div>
        <div class="inp-3">
          <div class="company-name">
            <span>* <font>公司名称:</font> </span>
            <input type="text" class="int1" />
          </div>
          <div class="company-nature">
            <span> 公司性质: </span>
            <select class="select2_test">
              <option>请选择</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
            </select>
          </div>
          <div class="company-industry">
            <span> 公司行业: </span>
            <select class="select2_test">
              <option>请选择</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
            </select>
          </div>
        </div>
        <div class="company-address">
          <span>* <font>公司所在地:</font> </span>
          <select class="select2_test">
            <option>请选择</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
          </select>
          <select class="select2_test">
            <option>请选择</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
          </select>
          <input class="select3_test" />
        </div>
        <div class="company-zz">
          <span>* <font>营业执照:</font> </span>
          <div class="file-box">
            <input type="file" class="file-btn" />
            上传
          </div>
          <p>注：图片格式为 JPG/JPEG/PNG/PDF 大小在2MB内</p>
        </div>
        <div class="xydm">
          <span>* <font> 社会信用代码 :</font> </span>
          <input type="text" class="int1" />
        </div>
        <div class="name-fr">
          <span>* <font> 法人姓名 :</font> </span>
          <input type="text" class="int1" />
        </div>
        <div class="name-fr-zh">
          <span>* <font> 法人身份证号 :</font> </span>
          <input type="text" class="int1" />
        </div>
        <div class="name-fr-zh-a">
          <span>
            <font> 对公银行账号:</font>
          </span>
          <input type="text" class="int1" />
        </div>
        <div class="name-fr-zh-b">
          <span>
            <font> 对公开户行： :</font>
          </span>
          <input type="text" class="int1" />
        </div>
      </div>
      <div class="line"></div>
      <div class="title-msg">合同信息</div>
      <el-autocomplete v-model="state" :fetch-suggestions="querySearchAsync" placeholder="请输入合同名称"
        @select="handleSelect"></el-autocomplete>
      <div class="sou">
        <img src="../../assets/Verification/sou.png" alt="" />
      </div>
      <!-- //合同信息列表 -->
      <div class="tab">
        <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
          @selection-change="handleSelectionChange" height="300">
          <el-table-column type="selection" width="55" fixed> </el-table-column>
          <el-table-column label="合同名称" width="120" fixed>
            <template slot-scope="scope">{{ scope.row.date }}</template>
          </el-table-column>
          <el-table-column prop="name" label="签署时间" width="120">
          </el-table-column>
          <el-table-column prop="address" label="合同开始时间" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="合同结束时间" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="业务类别" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="描述" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="描述" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="描述" show-overflow-tooltip width="210">
          </el-table-column>
        </el-table>
      </div>
      <!-- 分页功能 -->
      <div class="block">
        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
          :current-page="currentPage4" :page-sizes="[5, 8, 10, 15]" :page-size="100"
          layout="total, sizes, prev, pager, next, jumper" :total="400">
        </el-pagination>
      </div>
      <div class="line1"></div>
      <div class="title-msg">发票信息</div>
      <el-autocomplete v-model="state" :fetch-suggestions="querySearchAsync" placeholder="请输入发票名称"
        @select="handleSelect"></el-autocomplete>
      <div class="sou">
        <img src="../../assets/Verification/sou.png" alt="" />
      </div>
      <div class="edit">
        <el-button type="primary" @click="dialogFormVisible = true">新增</el-button>
        <!-- //新增发票信息的diag -->
        <el-dialog title="添加发票信息" :visible.sync="dialogFormVisible" width="35%">
          <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
            <el-form-item label="单位名称" prop="name">
              <el-input v-model="ruleForm.name" placeholder="请输入"></el-input>
            </el-form-item>
            <el-form-item label="注册电话" prop="region">
              <el-input v-model="ruleForm.region" placeholder="请输入"></el-input>
            </el-form-item>
            <el-form-item label="纳税人识别码" prop="number">
              <el-input v-model="ruleForm.region" placeholder="请输入"></el-input>
            </el-form-item>
            <el-form-item label="银行账户" prop="account">
              <el-input v-model="ruleForm.account" placeholder="请输入"></el-input>
            </el-form-item>
            <el-form-item label="开户银行" prop="band">
              <el-select v-model="ruleForm.band" placeholder="请选择开户银行">
                <el-option label="中国建设银行" value="shanghai"></el-option>
                <el-option label="中国工商银行" value="beijing"></el-option>
                <el-option label="中国农业银行" value="beijing"></el-option>
                <el-option label="中国银行" value="beijing"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="注册地址" prop="address">
              <el-input v-model="ruleForm.address" placeholder="请输入"></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="dialogFormVisible = false">取 消</el-button>
            <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
          </div>
        </el-dialog>
      </div>
      <!-- 发票信息列表 -->
      <div class="tab1">
        <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
          @selection-change="handleSelectionChange" height="550">
          <el-table-column type="selection" width="55"> </el-table-column>
          <el-table-column label="单位名称" width="120" fixed>
            <template slot-scope="scope">{{ scope.row.date }}</template>
          </el-table-column>
          <el-table-column prop="name" label="纳税人识别码" width="120">
          </el-table-column>
          <el-table-column prop="address" label="注册电话" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="注册地址" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="开户银行" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="银行账号" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="描述" show-overflow-tooltip width="210">
          </el-table-column>
          <el-table-column prop="address" label="描述" show-overflow-tooltip width="210">
            <!-- 编辑和删除 -->
            <!-- <template> -->
            <el-button @click="dialogFormEditVisible=true" type="primary" icon="el-icon-edit" size="small">编辑
            </el-button>
            <!-- 点击编辑发票信息 -->

            <el-button type="danger" icon="el-icon-delete" size="small">删除</el-button>
            <!-- </template> -->
          </el-table-column>
        </el-table>
      </div>
      <!-- 分页功能 -->
      <div class="block">
        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
          :current-page="currentPage4" :page-sizes="[5, 8, 10, 15]" :page-size="100"
          layout="total, sizes, prev, pager, next, jumper" :total="400">
        </el-pagination>
      </div>
      <div class="submitbox">
        <div class="sub">确定</div>
        <div class="sub">取消</div>
      </div>
    </div>
    <!-- 编辑发票信息的dialog -->
    <el-dialog title="编辑发票信息" :visible.sync="dialogFormEditVisible" width="35%">
      <el-form :model="ruleFormEdit" :rules="rules" ref="ruleFormEdit" label-width="120px" class="demo-ruleForm">
        <el-form-item label="单位名称" prop="name">
          <el-input v-model="ruleFormEdit.name" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="注册电话" prop="region">
          <el-input v-model="ruleFormEdit.region" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="纳税人识别码" prop="number">
          <el-input v-model="ruleFormEdit.region" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="银行账户" prop="account">
          <el-input v-model="ruleFormEdit.account" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="开户银行" prop="band">
          <el-select v-model="ruleFormEdit.band" placeholder="请选择开户银行">
            <el-option label="中国建设银行" value="shanghai"></el-option>
            <el-option label="中国工商银行" value="beijing"></el-option>
            <el-option label="中国农业银行" value="beijing"></el-option>
            <el-option label="中国银行" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="注册地址" prop="address">
          <el-input v-model="ruleFormEdit.address" placeholder="请输入"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormEditVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormEditVisible = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      imageSave: '', //图片路径
      uploadDate: '', //上传时间
      //搜索框k
      restaurants: [],
      state: '',
      timeout: null,
      //搜索框j
      // tab信息k
      tableData: [
        {
          date: '2016-05-03',
          name: '王小虎',
          address: '2019-09-15  12:31:23'
        },
        {
          date: '2016-05-02',
          name: '王小虎',
          address: '2019-09-15  12:31:23'
        },
        {
          date: '2016-05-04',
          name: '王小虎',
          address: '2019-09-15  12:31:23'
        },
        {
          date: '2016-05-01',
          name: '王小虎',
          address: '2019-09-15  12:31:23'
        },
        {
          date: '2016-05-08',
          name: '王小虎',
          address: '2019-09-15  12:31:23'
        },
        {
          date: '2016-05-06',
          name: '王小虎',
          address: '2019-09-15  12:31:23'
        },
        {
          date: '2016-05-07',
          name: '王小虎',
          address: '2019-09-15  12:31:23'
        }
      ],
      multipleSelection: [],
      currentPage1: 5,
      currentPage2: 5,
      currentPage3: 5,
      currentPage4: 4,
      //新增发票信息的diag
      dialogFormVisible: false,
      dialogFormEditVisible: false,
      ruleForm: {
        name: '',
        region: '', //注册电话
        number: '', //纳税人识别码
        account: '', //银行账户
        band: '', //开户银行
        address: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      ruleFormEdit: {
        name: '',
        region: '', //注册电话
        number: '', //纳税人识别码
        account: '', //银行账户
        band: '', //开户银行
        address: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      rules: {
        name: [
          { required: true, message: '请输入单位名称', trigger: 'blur' },
          { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
        ],
        number: [
          { required: true, message: '请输入纳税人识别码', trigger: 'blur' },
          { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
        ]
      },
      formLabelWidth: '120px'
    }
  },
  methods: {
    //图片库模拟点击input file
    monidianji() {
      document.getElementById('saveImage').click()
    },
    yulan() {
      document.getElementById('saveImage').onchange = function() {
        var imgFile = this.files[0]
        var fr = new FileReader()
        fr.onload = function() {
          document.getElementById('portrait').src = fr.result
        }
        fr.readAsDataURL(imgFile)
      }
    },
    //上传
    imageSubmit() {
      let _this = this
      let x = document.getElementById('saveImage').files[0]
      let params = new FormData() //创建一个form对象
      params.append('file', x, x.name) //append 向form表单添加数据
      //添加请求头  通过form添加的图片和文件的格式必须是multipart/form-data
      let config = { headers: { 'Content-Type': 'multipart/form-data' } }
      //发起ajax请求存放在服务端
      this.$axios
        .post(api.personHeadImg, params, config)
        .then(function(res) {
          _this.imageSave = res.data.lujing
          let mydate = new Date()
          _this.uploadDate = '上传时间：' + mydate.toLocaleString()
          _this.$notify({
            type: 'success',
            message: '上传成功!',
            offset: 160
          })
        })
        .catch(function(error) {
          console.log(error)
          _this.$notify({
            type: 'warning',
            message: '上传失败!',
            offset: 160
          })
        })
    },
    gotomessage() {
      console.log('ok')
      this.$router.push('/companyinfomsg')
    },
    loadAll() {
      return [
        { value: '三全鲜食（北新泾店）', address: '长宁区新渔路144号' },
        {
          value: 'Hot honey 首尔炸鸡（仙霞路）',
          address: '上海市长宁区淞虹路661号'
        },
        {
          value: '新旺角茶餐厅',
          address: '上海市普陀区真北路988号创邑金沙谷6号楼113'
        },
        { value: '泷千家(天山西路店)', address: '天山西路438号' }
      ]
    },
    querySearchAsync(queryString, cb) {
      var restaurants = this.restaurants
      var results = queryString
        ? restaurants.filter(this.createStateFilter(queryString))
        : restaurants

      clearTimeout(this.timeout)
      this.timeout = setTimeout(() => {
        cb(results)
      }, 3000 * Math.random())
    },
    createStateFilter(queryString) {
      return state => {
        return (
          state.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
        )
      }
    },
    handleSelect(item) {
      console.log(item)
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`)
    },
    //手动点击编辑
    handleClickEdit() {
      console.log('ok')
      this.dialogFormEditVisible = true
      
    }
  },
  mounted() {
    this.yulan() //预览图片
    this.restaurants = this.loadAll()
  }
  //搜索框
}
</script>
<style lang="less" scoped>
.container {
  width: 1320px;
  
  .el-b {
    font-size: 19px;
    /*margin-left: -66px;*/
    color: #42a2ff;
  }

  .title {
    margin-left: -102px;
    padding-top: 51px;
    width: 126px;
    height: 24px;
    font-size: 21px;
    font-family: Adobe Heiti Std;
    font-weight: normal;
    color: #42a2ff;
    line-height: 26px;
  }
  .tips {
    margin: auto;
    margin-top: 29px;
    width: 534px;
    height: 21px;
    font-size: 21px;
    font-family: Adobe Heiti Std;
    font-weight: normal;
    color: rgba(102, 102, 102, 1);
    line-height: 26px;
  }
  .line {
    margin-top: 35px;
    width: 1320px;
    border: 1px dashed rgba(191, 191, 191);
  }
  .logo-nane {
    height: 250px;
    width: 1320px;
    .inp-3 {
      width: 450px;
      height: 250px;
      position: relative;
      left: 763px;
      top: -103px;
      .company-name {
        position: absolute;
        top: 28px;
        width: 450px;
        height: 45px;
        span {
          width: 89px;
          height: 17px;
          font-size: 18px;
          font-family: Adobe Heiti Std;
          font-weight: normal;
          color: rgba(255, 0, 0, 1);
          line-height: 26px;
          font {
            color: #666;
            font-weight: normal;
          }
        }
        .int1 {
          width: 320px;
          height: 45px;
          background: rgba(255, 255, 255, 1);
          border: 1px solid rgba(221, 221, 221, 1);
          border-radius: 2px;
          margin-left: 10px;
        }
      }
      .company-nature {
        position: absolute;
        top: 111px;
        left: 13px;
        width: 450px;
        height: 45px;
        span {
          width: 89px;
          height: 17px;
          font-size: 18px;
          font-family: Adobe Heiti Std;
          font-weight: normal;
          color: #666;
          line-height: 26px;
        }
        .select2_test {
          margin-left: 6px;
          width: 320px;
          height: 45px;
          background: rgba(255, 255, 255, 1);
          border: 1px solid rgba(221, 221, 221, 1);
          border-radius: 2px;
          option {
            width: 320px;
            height: 45px;
          }
        }
      }
      .company-industry {
        position: absolute;
        top: 193px;
        left: 13px;
        width: 450px;
        height: 45px;
        span {
          width: 89px;
          height: 17px;
          font-size: 18px;
          font-family: Adobe Heiti Std;
          font-weight: normal;
          color: #666;
          line-height: 26px;
        }
        .select2_test {
          margin-left: 6px;
          width: 320px;
          height: 45px;
          background: rgba(255, 255, 255, 1);
          border: 1px solid rgba(221, 221, 221, 1);
          border-radius: 2px;
          option {
            width: 320px;
            height: 45px;
          }
        }
      }
    }
    .company-address {
      position: absolute;
      top: 438px;
      margin-left: 33px;
      width: 450px;
      height: 45px;
      span {
        width: 89px;
        height: 17px;
        font-size: 18px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: rgba(255, 0, 0, 1);
        line-height: 26px;
        font {
          color: #666;
          font-weight: normal;
        }
      }
      .select2_test {
        margin-left: 6px;
        width: 140px;
        height: 45px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        border-radius: 2px;
        option {
          width: 320px;
          height: 45px;
        }
      }
      .select3_test {
        position: relative;
        margin-left: 406px;
        top: -44px;
        width: 743px;
        height: 40px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        border-radius: 2px;
      }
    }
    .company-zz {
      position: absolute;
      top: 508px;
      margin-left: 37px;
      width: 450px;
      height: 45px;
      span {
        width: 109px;
        height: 17px;
        font-size: 18px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: rgba(255, 0, 0, 1);
        line-height: 26px;
        font {
          color: #666;
          font-weight: normal;
        }
      }
      .file-box {
        display: inline-block;
        position: relative;
        left: 20px;
        text-align: center;
        width: 81px;
        line-height: 45px;
        height: 45px;
        padding: 3px 5px;
        /* overflow: hidden; */
        color: #fff;
        background-color: #58a3f7;
      }

      .file-btn {
        position: absolute;
        width: 81px;
        height: 45px;
        top: 0;
        left: 20px;
        outline: none;
        background-color: transparent;
        filter: alpha(opacity=0);
        -moz-opacity: 0;
        -khtml-opacity: 0;
        opacity: 0;
      }
      p {
        color: #ff0000;
        margin-left: 100px;
        width: 400px;
      }
    }
    .xydm {
      position: absolute;
      top: 508px;
      margin-left: 720px;
      width: 477px;
      height: 45px;
      span {
        width: 89px;
        height: 17px;
        font-size: 18px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: rgba(255, 0, 0, 1);
        line-height: 26px;
        font {
          color: #666;
          font-weight: normal;
        }
      }
      .int1 {
        width: 320px;
        height: 45px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        border-radius: 2px;
        margin-left: 10px;
      }
    }
    .name-fr {
      position: absolute;
      top: 615px;
      margin-left: 43px;
      width: 477px;
      height: 45px;
      span {
        width: 89px;
        height: 17px;
        font-size: 18px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: rgba(255, 0, 0, 1);
        line-height: 26px;
        font {
          color: #666;
          font-weight: normal;
        }
      }
      .int1 {
        width: 320px;
        height: 45px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        border-radius: 2px;
        margin-left: 10px;
      }
    }
    .name-fr-zh {
      position: absolute;
      top: 615px;
      margin-left: 720px;
      width: 477px;
      height: 45px;
      span {
        width: 89px;
        height: 17px;
        font-size: 18px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: rgba(255, 0, 0, 1);
        line-height: 26px;
        font {
          color: #666;
          font-weight: normal;
        }
      }
      .int1 {
        width: 320px;
        height: 45px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        border-radius: 2px;
        margin-left: 10px;
      }
    }
    .name-fr-zh-a {
      position: absolute;
      margin-left: 25px;
      top: 708px;
      width: 477px;
      height: 45px;
      span {
        width: 89px;
        height: 17px;
        font-size: 18px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: rgba(255, 0, 0, 1);
        line-height: 26px;
        font {
          color: #666;
          font-weight: normal;
        }
      }
      .int1 {
        width: 320px;
        height: 45px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        border-radius: 2px;
        margin-left: 10px;
      }
    }
    .name-fr-zh-b {
      position: absolute;
      top: 708px;
      margin-left: 734px;
      width: 477px;
      height: 45px;
      span {
        width: 89px;
        height: 17px;
        font-size: 18px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: rgba(255, 0, 0, 1);
        line-height: 26px;
        font {
          color: #666;
          font-weight: normal;
        }
      }
      .int1 {
        width: 320px;
        height: 45px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        border-radius: 2px;
        margin-left: 10px;
      }
    }
  }
  .line {
    width: 1338px;
    border: 1px dashed #ccc;
    margin-top: 450px;
  }

  .title-msg {
    font-size: 19px;
    color: #23a5f9;
    margin-top: 25px;
  }
  .el-autocomplete {
    margin-top: 10px;
  }
  .sou {
    position: relative;
    left: 202px;
    top: -40px;
    width: 40px;
    height: 40px;
    background-color: #42a2ff;
    border-radius: 5px;
  }
  img {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    margin-top: 8px;
  }
  
  .block {
    margin-left: 200px;
    margin-top: 20px;
  }
  .line1 {
    width: 1338px;
    border: 1px dashed #ccc;
    margin-top: 50px;
  }
  .edit {
    float: right;
    margin-right: 35px;
    margin-bottom: 8px;
  }
  
  .submitbox {
    width: 500px;
    background-color: #58a3f7;
    margin: auto;
    margin-top: 20px;
    .sub {
      float: left;
      margin-left: 50px;
      width: 140px;
      height: 35px;
      text-align: center;
      background: rgba(255, 255, 255, 1);
      border: 1px solid rgba(66, 162, 255, 1);
      border-radius: 2px;
      background-color: #58a3f7;
      color: #fff;
      padding-top: 10px;
      cursor: pointer;
    }
  }

  /* 上传图片的样式 */
  #headImg {
    margin-left: 50px;
    .viewPhoto {
      border: 1px rgba(99, 199, 210, 0.79) dashed;
      width: 350px;
      height: 250px;
      background-image: url(../../assets/Verification/u3374.png);
      background-repeat: no-repeat;
      background-position: center;
    }
    #saveImage {
      display: none;
    }

    .save {
      margin: 30px auto;
    }
    .viewPhoto {
      position: relative;
      float: left;
      margin-right: 10%;
    }
    .el-icon-t {
      font-size: 19px;
      color: rgba(88, 163, 247, 1);
      position: absolute;
      margin-left: -292px;
      margin-top: 166px;
      transform: translate(-50%, -50%);
      max-width: 50%;
      text-align: center;
      font-weight: normal;
      cursor: pointer;
    }
  }
}
</style>
